﻿using Manon.Admin.Web.ApplicationCore.Dtos.Other;
using Manon.Autofac;
using Manon.Core.Commons;
using Manon.Repository.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.Admin.Web.ApplicationCore.Interfaces
{
    public interface IOtherService : ISingletonDependency
    {
        /// <summary>
        /// 获取友情链接
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<GetFriendlylinkOutput> GetFriendlylink(int Id);

        /// <summary>
        /// 获取友情链接列表
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
        Task<IPagedList<GetFriendlylinkOutput>> GetFriendlylinkPagedList(GetFriendlylinkPagedListInput Input);

        /// <summary>
        /// 保存友情链接 
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
        Task<Result> SaveFriendlylink(SaveFriendlylinkInput Input);


        /// <summary>
        /// 设置友情链接是否可用
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
        Task<Result> SetFriendlylinkEnabled(int Id, bool Enabled);
    }
}
